public class Compare {
    public static void main(String[] args) {
        int result = compare(20,20);
        System.out.println(result);
    }
    public static int compare(int a,int b){
        if (a > b && a != b ){
            return a;
        }else if(a == b){
            return 0;
        }else{
            return b;
        }
    }
}
